<?php

namespace App\Http\Requests\User;


use App\Http\Requests\AbstractBaseRequest;

class EditPayPassRequest extends AbstractBaseRequest
{
    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules(): array
    {
        return [
            'new_pay_pass' => ['required', 'string', 'between:6,20'],
            'verify_code' => ['required', 'digits:6'],
        ];
    }

    public function attributes(): array
    {
        return [
            'new_pay_pass' => trans('新安全密码'),
            'verify_code' => trans('短信验证码'),
        ];
    }

}
